/**
 * 作者: wgx
 * 日期: 2025-03-29 14:35:13
 * 备注: 餐厅任务配置表
 */
package com.motu.monstercity.server.game.commondata.restaurant;

import io.vertx.core.json.JsonObject;

public class RestaurantTaskModel {
    protected int id; // id
    protected int foodId; // 美食攻略id
    protected int guestNum; // 接待的客人数量
    protected String reward; // 奖励

    public RestaurantTaskModel() {
    }

    public RestaurantTaskModel(JsonObject obj) {
        id = obj.containsKey("id") ? obj.getInteger("id") : 0;
        foodId = obj.containsKey("food_id") ? obj.getInteger("food_id") : 0;
        guestNum = obj.containsKey("guest_num") ? obj.getInteger("guest_num") : 0;
        reward = obj.containsKey("reward") ? obj.getString("reward") : "";
    }

    public int getId() {
        return id;
    }

    public int getFoodId() {
        return foodId;
    }

    public int getGuestNum() {
        return guestNum;
    }

    public String getReward() {
        return reward;
    }

}
